package com.ctn.information.content;

import com.ctn.information.R;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

/**
 * 中心区域面板 - 大讲堂
 * 
 * @author HLJ
 *
 */
public class ClazzFragment extends Fragment {
	
	private int mColorRes = -1;
	
	public ClazzFragment() { 
		mColorRes = R.color.darkviolet;
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		if (savedInstanceState != null)
			mColorRes = savedInstanceState.getInt("mColorRes3");
		int color = getResources().getColor(mColorRes);

		RelativeLayout v = new RelativeLayout(getActivity());
		v.setBackgroundColor(color);		
		return v;
	}
	
	@Override
	public void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
		outState.putInt("mColorRes3", mColorRes);
	}
	
	
}
